<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>登录</title>
		<!-- 样 式 文 件 -->
		<link rel="stylesheet" href="/static/pengpai/component/pear/css/pear.css" />
		<link rel="stylesheet" href="/static/pengpai/admin/css/other/login.css" />
	</head>
    <!-- 代 码 结 构 -->
<!--	<body background="/static/pengpai/admin/images/background.svg" style="background-image:url('/static/pengpai/admin/images/background.svg') ;background-size: cover;">-->
	<body style="background-image:url('/static/pengpai/admin/images/background.svg') ;background-size: cover;">
		<form class="layui-form" action="/login" method="post">
			<div class="layui-form-item">
				<img class="logo" src="/static/pengpai/admin/images/logo.png" />
				<div class="title">运营管理平台</div>
				<div class="desc">
					<a href="https://www.pengpaishuzi.com">江 苏 彭 派 数 字 科 技 有 限 公 司</a>
				</div>
			</div>
			<div class="layui-form-item">
				<input name="username" placeholder="请输入账号" lay-verify="required" hover class="layui-input"  />
			</div>
			<div class="layui-form-item">
				<input name="password" type="password" placeholder="请输入密码" lay-verify="required" hover class="layui-input"  />
			</div>
			<div class="layui-form-item">
				<input name="captcha" style="width: 200px" placeholder="请输入验证码"  hover  lay-verify="required" class="code layui-input layui-input-inline"  />
				<img src="/captcha" class="codeImage"  onclick="this.src='/captcha?' + new Date().getTime();"/>
			</div>
			<div class="layui-form-item">
				<p><span style="color: red" th:if="${param.error}" th:text="${session?.SPRING_SECURITY_LAST_EXCEPTION?.message}" ></span></p>
			</div>
			<div class="layui-form-item">
				<input type="checkbox" name="" title="记住密码" lay-skin="primary" checked>
			</div>
			<div class="layui-form-item">
				<button type="submit" class="pear-btn pear-btn-success login" lay-submit lay-filter="login">
					登&nbsp;&nbsp;&nbsp;&nbsp;录
				</button>
			</div>
		</form>
		<!-- 资 源 引 入 -->
		<script src="/static/pengpai/component/layui/layui.js"></script>
		<script src="/static/pengpai/component/pear/pear.js"></script>
		<script>
			layui.use(['form', 'button', 'popup'], function() {
				var form = layui.form;
				var button = layui.button;
				var popup = layui.popup;

				// 登录过期的时候，跳出ifram框架
				if (top.location != self.location) top.location = self.location;

                // 登 录 提 交
				// form.on('submit(login)', function(data) {
				//
				// 	/// 验证
				//
				// 	/// 登录
				//
				// 	/// 动画
				// 	button.load({
				// 		elem: '.login',
				// 		time: 1500,
				// 		done: function() {
				//
				//
				//
				// 			popup.success("登录成功", function() {
				// 				location.href = "index.html"
				// 			});
				// 		}
				// 	})
				// 	return false;
				// });
			})
		</script>
	</body>
</html>
